package smartlifev30.com.sdk.bean.response;

/**
 *
 * @author tys
 * @date 2018/8/31
 */

public class LoginGatewayResponse {

    /**
     * msg_version : 0.1
     * from : 000c4313253b
     * to : 18825260673
     * msg_id : AndGH-021
     * msg_class : user_mgmt
     * msg_name : user_login
     * msg_type : response
     * status : 0
     * user : {"type":0,"need_sync_time":1,"token":"068d518b-09bc-4a9e-b30f-e54dbfae0418"}
     */

    private String msg_version;
    private String from;
    private String to;
    private String msg_id;
    private String msg_class;
    private String msg_name;
    private String msg_type;
    private int status;
    private UserBean user;

    public String getMsg_version() {
        return msg_version;
    }

    public void setMsg_version(String msg_version) {
        this.msg_version = msg_version;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getMsg_id() {
        return msg_id;
    }

    public void setMsg_id(String msg_id) {
        this.msg_id = msg_id;
    }

    public String getMsg_class() {
        return msg_class;
    }

    public void setMsg_class(String msg_class) {
        this.msg_class = msg_class;
    }

    public String getMsg_name() {
        return msg_name;
    }

    public void setMsg_name(String msg_name) {
        this.msg_name = msg_name;
    }

    public String getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(String msg_type) {
        this.msg_type = msg_type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public static class UserBean {
        /**
         * type : 0
         * need_sync_time : 1
         * token : 068d518b-09bc-4a9e-b30f-e54dbfae0418
         */

        private int type;
        private int need_sync_time;
        private String token;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getNeed_sync_time() {
            return need_sync_time;
        }

        public void setNeed_sync_time(int need_sync_time) {
            this.need_sync_time = need_sync_time;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        @Override
        public String toString() {
            return "UserBean{" +
                    "type=" + type +
                    ", need_sync_time=" + need_sync_time +
                    ", token='" + token + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "LoginGatewayResponse{" +
                "msg_version='" + msg_version + '\'' +
                ", from='" + from + '\'' +
                ", to='" + to + '\'' +
                ", msg_id='" + msg_id + '\'' +
                ", msg_class='" + msg_class + '\'' +
                ", msg_name='" + msg_name + '\'' +
                ", msg_type='" + msg_type + '\'' +
                ", status=" + status +
                ", user=" + user +
                '}';
    }
}
